// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import vuescroll from 'vuescroll'
import 'vuescroll/dist/vuescroll.css'
import 'element-ui/lib/theme-chalk/index.css'

// import axios from 'axios'
import axios from './request/http'
import store from './store'
// 引入echarts
import echarts from 'echarts'
import 'echarts-wordcloud'
import {
  Chart,
  registerShape,
  Util,
  registerGeometryLabelLayout
} from '@antv/g2'
import DataSet from '@antv/data-set'
import 'xe-utils'
import VXETable from 'vxe-table'
import 'vxe-table/lib/index.css'
import moment from 'moment'
import html2canvas from 'html2canvas'
import canvg from 'canvg'
import '@/public/css/modifyElement.css'

Vue.prototype.$axios = axios
Vue.prototype.$echarts = echarts
Vue.prototype.$Chart = Chart
Vue.prototype.$registerShape = registerShape
Vue.prototype.$registerGeometryLabelLayout = registerGeometryLabelLayout
Vue.prototype.$Util = Util
Vue.prototype.$DataSet = DataSet
Vue.prototype.$html2canvas = html2canvas
Vue.prototype.$canvg = canvg
Vue.prototype.$moment = moment
Vue.use(ElementUI)
Vue.use(vuescroll)
Vue.use(VXETable, { keepSource: true })
Vue.prototype.$vuescrollConfig = {
  mode: 'native',
  bar: {
    background: '#304156'
  },
  scrollPanel: {
    scrollingX: true
  }
}

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
